inspector: Add type column to statistics
authorBenjamin Otte <otte@redhat.com>
Mon, 13 Oct 2014 04:01:51 +0000 (06:01 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 14 Oct 2014 12:03:05 +0000 (14:03 +0200)
Rename old type column to "type name"

gtk/inspector/statistics.c
gtk/inspector/statistics.ui

index 8d1f598493a71868a2a61e915091641d27c22abf..1950301a35235a5dc1b74bcab621072051fd277e 100644 (file)
@@ -55,6 +55,7 @@ typedef struct {
 enum
 {
   COLUMN_TYPE,
+  COLUMN_TYPE_NAME,
   COLUMN_SELF1,
   COLUMN_CUMULATIVE1,
   COLUMN_SELF2,
@@ -149,7 +150,8 @@ refresh_clicked (GtkWidget *button, GtkInspectorStatistics *sl)
     {
       gtk_list_store_append (GTK_LIST_STORE (sl->priv->model), &treeiter);
       gtk_list_store_set (GTK_LIST_STORE (sl->priv->model), &treeiter,
-                          COLUMN_TYPE, g_type_name (data->type),
+                          COLUMN_TYPE, data->type,
+                          COLUMN_TYPE_NAME, g_type_name (data->type),
                           COLUMN_SELF1, data->self1,
                           COLUMN_CUMULATIVE1, data->cumulative1,
                           COLUMN_SELF2, data->self2,
index af3a50338d185436099234ed762b82dad46a6041..3066d938879a7bf51e94607fe1603a86ece4a33b 100644 (file)
@@ -2,6 +2,7 @@
 <interface domain="gtk30">
   <object class="GtkListStore" id="model">
     <columns>
+      <column type="GType"/>
       <column type="gchararray"/>
       <column type="gint"/>
       <column type="gint"/>
                     <child>
                       <object class="GtkTreeViewColumn">
                         <property name="visible">True</property>
-                        <property name="sort-column-id">0</property>
+                        <property name="sort-column-id">1</property>
                         <property name="title" translatable="yes">Type</property>
                         <child>
                           <object class="GtkCellRendererText">
                             <property name="scale">0.8</property>
                           </object>
                           <attributes>
-                            <attribute name="text">0</attribute>
+                            <attribute name="text">1</attribute>
                           </attributes>
                         </child>
                       </object>
@@ -62,7 +63,7 @@
                     <child>
                       <object class="GtkTreeViewColumn" id="column_self1">
                         <property name="visible">False</property>
-                        <property name="sort-column-id">1</property>
+                        <property name="sort-column-id">2</property>
                         <property name="title" translatable="yes">Self 1</property>
                         <child>
                           <object class="GtkCellRendererText" id="renderer_self1">
@@ -74,7 +75,7 @@
                     <child>
                       <object class="GtkTreeViewColumn" id="column_cumulative1">
                         <property name="visible">False</property>
-                        <property name="sort-column-id">2</property>
+                        <property name="sort-column-id">3</property>
                         <property name="title" translatable="yes">Cumulative 1</property>
                         <child>
                           <object class="GtkCellRendererText" id="renderer_cumulative1">
@@ -86,7 +87,7 @@
                     <child>
                       <object class="GtkTreeViewColumn" id="column_self2">
                         <property name="visible">False</property>
-                        <property name="sort-column-id">3</property>
+                        <property name="sort-column-id">4</property>
                         <property name="title" translatable="yes">Self 2</property>
                         <child>
                           <object class="GtkCellRendererText" id="renderer_self2">
@@ -98,7 +99,7 @@
                     <child>
                       <object class="GtkTreeViewColumn" id="column_cumulative2">
                         <property name="visible">False</property>
-                        <property name="sort-column-id">4</property>
+                        <property name="sort-column-id">5</property>
                         <property name="title" translatable="yes">Cumulative 2</property>
                         <child>
                           <object class="GtkCellRendererText" id="renderer_cumulative2">